import { ApiProperty } from '@nestjs/swagger';

export class PlateVo {
  @ApiProperty({ description: 'id', required: false })
  id: number;

  @ApiProperty({ description: '板块名称', required: false })
  plateName: string;

  @ApiProperty({ description: '块板描述', required: false })
  description: string;

  @ApiProperty({ description: '板块icon图标', required: false })
  iconURL: string;

  @ApiProperty({ description: '板块跳转路径', required: false })
  pathURL: string;

  @ApiProperty({ description: '板块的路由表', required: false })
  routingTable: string;

  @ApiProperty({ description: '状态', required: false })
  status: string;

  @ApiProperty({ description: '创建时间', required: false })
  createTime: Date;

  @ApiProperty({ description: '更新时间', required: false })
  updateTime: Date;
}

export class PlateListVo {
  @ApiProperty({
    type: [PlateVo],
    description: '板块列表',
    required: false,
  })
  list: PlateVo;

  @ApiProperty({ description: '页码', required: false })
  pageNum: number;

  @ApiProperty({ description: '页数', required: false })
  pageSize: number;

  @ApiProperty({ description: '总数', required: false })
  total: number;
}
